<template>
  <div>
    <div class="upload">
      <van-uploader :after-read="afterRead"/>
    </div>
  </div>
</template>

<script>
  export default {
    methods: {
      afterRead(file) {
      // 此时可以自行将文件上传至服务器
      console.log(file);
    },
    },
  }
</script>

<style lang="scss" scoped>
  div{
    position: fixed;
    bottom:0px;
  }
  .van-uploader{
    margin-left: 8px;
    margin-top:8px;
  }
</style>